package cn.gcBlock.dto;

import cn.hutool.core.date.DateUtil;
import cn.gcBlock.po.Node;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;


/**
* @author jie
* @date 2019-07-21
*/
@Data
public class NodeDTO extends Node implements Serializable {
    String privateKey;
    boolean isUnfold = false;
    private String transTime;
    double remain;
    String toName;

    public String getTransTime() {
        try {
        return DateUtil.formatDateTime(new Date(super.getTimestamp()));
        }catch (Exception e){
            return "";
        }
    }
}